import React from "react";

import { Link, Switch } from "react-router-dom";

const Home = (props) => {
  return (
    <>
      <div>这是首页页面</div>
      <ul>
        <li>
          <Link to="/home/home1">home1</Link>
        </li>
        <li>
          <Link to="/home/home2">home2</Link>
        </li>
      </ul>

      <hr />

      <Switch>{props.children}</Switch>
    </>
  );
};

export default Home;
